Convert shr.el from using overlays into using text properties
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 17 Jun 2013 09:19:50 +0000 (09:19 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 17 Jun 2013 09:19:50 +0000 (09:19 +0000)
commit74f31c8db895b96039f1dbe4a8b38ecd7b5049c7
treec6c5dcda013c269c68f276323fd9dd79d0db43d3
parent636f76bc9601507b6123f2f9ab5fcd3bcbbfc4d2
Convert shr.el from using overlays into using text properties

* eww.el (eww-mode-map): Use `shr-next-link' (etc) instead of the
widget commands, since we're no longer using widgets for links.

* mm-decode.el (mm-convert-shr-links): New function to convert
new-style shr URL links into widgets.
(mm-shr): Use it.

* shr.el (shr-next-link): New command.
(shr-previous-link): New command.
(shr-urlify): Don't use `widget-convert', because that's slow.
(shr-put-color-1): Use `add-face-text-property' instead of overlays,
because collecting the overlays and reapplying them when generating
tables is slow.
(shr-insert-table): Ditto.
lisp/gnus/ChangeLog
lisp/gnus/eww.el
lisp/gnus/mm-decode.el
lisp/gnus/shr.el